package chapter10;

public class Day02 {
    public static void main(String[] args) {
        double gao = 10;
        double sum = 0;
        int time = 0;
        while (true){
            sum += gao;
            gao *= 0.8;
            time++;
            if (gao<0.01){
                sum +=gao;
                break;
            }
        }

        System.out.println("小球在"+time+"次小于0.01米");
        System.out.println("小球的运动轨迹是"+sum+"米");
    }
}
